home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Human / metacity-1 / metacity-theme-1.xml < prev   
Encoding:
Extensible Markup Language  |  2009-03-30  |  33.5 KB  |  761 lines

  1. <?xml version="1.0"?>
  2. <!--     $Id: metacity-theme-1.xml,v 1.1 2005/08/01 18:39:07 thos Exp $     -->
  3. <metacity_theme>
  4. <info>
  5.   <name>Human</name>
  6.   <author>Daniel Borgmann <daniel.borgmann@gmail.com> Billy Cantrell, bvcmdk@yahoo.com</author>
  7.   <copyright> 2005 Daniel Borgmann</copyright>
  8.   <date>April, 2006</date>
  9.   <description>Ubuntu Human Round, based on Clearlooks</description>
  10. </info>
  11.  
  12. <frame_geometry name="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true">
  13.   <distance name="left_width" value="5"/>
  14.   <distance name="right_width" value="5"/>
  15.   <distance name="bottom_height" value="5"/>
  16.   <distance name="left_titlebar_edge" value="4"/>
  17.   <distance name="right_titlebar_edge" value="4"/>
  18.   <aspect_ratio name="button" value="0.9"/>
  19.   <distance name="title_vertical_pad" value="4"/>
  20.   <border name="title_border" left="2" right="2" top="1" bottom="2"/>
  21.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  22. </frame_geometry>
  23.  
  24. <frame_geometry name="shaded" parent="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true"/>
  25.  
  26. <frame_geometry name="normal_maximized" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
  27.   <!-- strip frame spacing off the normal geometry when maximised -->
  28.   <distance name="left_width" value="0"/>
  29.   <distance name="right_width" value="0"/>
  30.   <distance name="bottom_height" value="1"/>
  31.   <distance name="left_titlebar_edge" value="0"/>
  32.   <distance name="right_titlebar_edge" value="0"/>
  33. </frame_geometry>
  34.  
  35. <frame_geometry name="utility" title_scale="small" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
  36.   <distance name="left_width" value="5"/>
  37.   <distance name="right_width" value="5"/>
  38.   <distance name="bottom_height" value="5"/>
  39.   <distance name="left_titlebar_edge" value="0"/>
  40.   <distance name="right_titlebar_edge" value="2"/>
  41.   <distance name="title_vertical_pad" value="4"/>
  42.   <border name="title_border" left="0" right="2" top="1" bottom="2"/>
  43.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  44.   <aspect_ratio name="button" value="0.8"/>
  45. </frame_geometry>
  46.  
  47. <frame_geometry name="border" has_title="false">
  48.   <distance name="left_width" value="4"/>
  49.   <distance name="right_width" value="4"/>
  50.   <distance name="bottom_height" value="4"/>
  51.   <distance name="left_titlebar_edge" value="0"/>
  52.   <distance name="right_titlebar_edge" value="0"/>
  53.   <distance name="button_width" value="0"/>
  54.   <distance name="button_height" value="0"/>
  55.   <distance name="title_vertical_pad" value="4"/>
  56.   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  57.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  58. </frame_geometry>
  59.  
  60. <!-- button minimum size -->
  61. <constant name="Bmin" value="7"/>
  62. <!-- button inside padding -->
  63. <constant name="Bpad" value="8"/>
  64.  
  65. <draw_ops name="corners_outline_selected_top">
  66.     <!-- top left -->
  67.     <line color="shade/gtk:bg[SELECTED]/0.4" x1="0" y1="6" x2="1" y2="2"/>
  68.     <line color="shade/gtk:bg[SELECTED]/0.5" x1="1" y1="3" x2="1" y2="4"/>
  69.      <line color="shade/gtk:bg[SELECTED]/0.55" x1="1" y1="3" x2="2" y2="2"/>
  70.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="3" y1="1" x2="4" y2="1"/>
  71.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="3" y1="1" x2="1" y2="1"/>
  72.  
  73.     <!-- top right -->
  74.     <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-1" y1="6" x2="width-1" y2="2"/>
  75.     <line color="shade/gtk:bg[SELECTED]/0.5" x1="width-2" y1="3" x2="width-2" y2="4"/>
  76.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="width-2" y1="3" x2="width-3" y2="2"/>
  77.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="width-4" y1="1" x2="width-5" y2="1"/>
  78.     <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-4" y1="1" x2="width-1" y2="1"/>
  79. </draw_ops>
  80.  
  81. <draw_ops name="corners_outline_top">
  82.     <!-- top left -->
  83.     <line color="shade/gtk:bg[NORMAL]/0.35" x1="1" y1="3" x2="1" y2="4"/>
  84.      <line color="shade/gtk:bg[NORMAL]/0.4" x1="2" y1="2" x2="2" y2="2"/>
  85.     <line color="shade/gtk:bg[NORMAL]/0.45" x1="3" y1="1" x2="4" y2="1"/>
  86.  
  87.     <!-- top right -->
  88.     <line color="shade/gtk:bg[NORMAL]/0.35" x1="width-2" y1="3" x2="width-2" y2="4"/>
  89.     <line color="shade/gtk:bg[NORMAL]/0.4" x1="width-3" y1="2" x2="width-3" y2="2"/>
  90.     <line color="shade/gtk:bg[NORMAL]/0.45" x1="width-4" y1="1" x2="width-5" y2="1"/>
  91. </draw_ops>
  92.  
  93. <draw_ops name="corners_outline_selected_bottom">
  94.     <!-- bottom left -->
  95.     <line color="shade/gtk:bg[SELECTED]/0.38" x1="1" y1="height-4" x2="0" y2="height-7"/>
  96.     <line color="shade/gtk:bg[SELECTED]/0.36" x1="1" y1="height-4" x2="1" y2="height-5"/>
  97.      <line color="shade/gtk:bg[SELECTED]/0.38" x1="2" y1="height-3" x2="2" y2="height-3"/>
  98.     <line color="shade/gtk:bg[SELECTED]/0.35" x1="2" y1="height-2" x2="4" y2="height-2"/>
  99.  
  100.     <!-- bottom right -->
  101.     <line color="shade/gtk:bg[SELECTED]/0.38" x1="width-2" y1="height-4" x2="width-1" y2="height-7"/>
  102.     <line color="shade/gtk:bg[SELECTED]/0.36" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
  103.     <line color="shade/gtk:bg[SELECTED]/0.38" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
  104.     <line color="shade/gtk:bg[SELECTED]/0.35" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
  105. </draw_ops>
  106. <draw_ops name="corners_outline_bottom">
  107.     <!-- bottom left -->
  108.     <line color="shade/gtk:bg[NORMAL]/0.95" x1="4" y1="height-3" x2="1" y2="height-3"/>
  109.     <line color="shade/gtk:bg[NORMAL]/0.93" x1="3" y1="height-3" x2="1" y2="height-3"/>
  110.     <line color="shade/gtk:bg[NORMAL]/1.05" x1="2" y1="height-5" x2="1" y2="height-6"/>
  111.     <line color="shade/gtk:bg[NORMAL]/1.03" x1="2" y1="height-4" x2="1" y2="height-5"/>
  112.     <line color="shade/gtk:bg[NORMAL]/0.85" x1="6" y1="height-2" x2="1" y2="height-2"/>
  113.     <line color="shade/gtk:bg[NORMAL]/0.83" x1="5" y1="height-2" x2="1" y2="height-3"/>
  114.  
  115.     <line color="shade/gtk:bg[NORMAL]/0.28" x1="1" y1="height-4" x2="1" y2="height-5"/>
  116.      <line color="shade/gtk:bg[NORMAL]/0.3" x1="2" y1="height-3" x2="2" y2="height-3"/>
  117.     <line color="shade/gtk:bg[NORMAL]/0.28" x1="2" y1="height-2" x2="4" y2="height-2"/>
  118.  
  119.     <!-- bottom right -->
  120.     <line color="shade/gtk:bg[NORMAL]/0.90" x1="width-3" y1="height-4" x2="width-2" y2="height-4"/>
  121.     <line color="shade/gtk:bg[NORMAL]/0.90" x1="width-3" y1="height-5" x2="width-2" y2="height-5"/>
  122.     <line color="shade/gtk:bg[NORMAL]/0.90" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
  123.     <line color="shade/gtk:bg[NORMAL]/0.97" x1="width-4" y1="height-4" x2="width-4" y2="height-4"/>
  124.  
  125.     <line color="shade/gtk:bg[NORMAL]/0.28" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
  126.     <line color="shade/gtk:bg[NORMAL]/0.3" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
  127.     <line color="shade/gtk:bg[NORMAL]/0.28" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
  128.  
  129. </draw_ops>
  130.  
  131. <draw_ops name="corners_hilight">
  132.     <!-- ** corner hilight for left top ** -->
  133.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.3" x="2" y="3" width="1" height="2"/>
  134.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="3" y="3" width="1" height="1"/>
  135.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.3" x="3" y="2" width="2" height="1"/>
  136.     <tint color="#000000" alpha="0.07" x="3" y="2" width="1" height="1"/>
  137.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="2" y="5" width="1" height="1"/>
  138.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.05" x="2" y="6" width="1" height="1"/>
  139.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="4" y="3" width="1" height="1"/>
  140.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="3" y="4" width="1" height="1"/>
  141.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="5" y="2" width="1" height="1"/>
  142.   
  143.  
  144.     <!-- ** corner hilight for right top ** -->
  145.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.15" x="width-4" y="3" width="1" height="1"/>
  146.     <tint color="#000000" alpha="0.05" x="width-4" y="2" width="1" height="1"/>
  147.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="width-5" y="2" width="1" height="1"/>
  148.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="width-6" y="2" width="1" height="1"/>
  149.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.05" x="width-7" y="2" width="1" height="1"/>
  150.     <tint color="#000000" alpha="0.1" x="width-3" y="3" width="1" height="1"/>
  151.     <tint color="#000000" alpha="0.04" x="width-3" y="4" width="1" height="2"/>
  152.   
  153.   <!-- ** corner hilight for left bottom ** -->
  154.   <!--<line color="shade/gtk:bg[NORMAL]/1.3" x1="2" y1="height-4" x2="2" y2="height-5"/>
  155.   <line color="shade/gtk:bg[NORMAL]/0.88" x1="3" y1="height-3" x2="4" y2="height-3"/>-->
  156.  
  157.   <!-- ** corner hilight for right bottom ** -->
  158.   <!--<line color="shade/gtk:bg[NORMAL]/0.88" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
  159.   <line color="shade/gtk:bg[NORMAL]/0.88" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>-->
  160. </draw_ops>
  161.  
  162. <draw_ops name="corners_hilight_shaded">
  163.     <!-- ** corner hilight for left top ** -->
  164.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.3" x="2" y="3" width="1" height="2"/>
  165.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="3" y="3" width="1" height="1"/>
  166.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.3" x="3" y="2" width="2" height="1"/>
  167.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="2" y="5" width="1" height="1"/>
  168.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.05" x="2" y="6" width="1" height="1"/>
  169.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="4" y="3" width="1" height="1"/>
  170.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="3" y="4" width="1" height="1"/>
  171.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="5" y="2" width="1" height="1"/>
  172.   
  173.     <!-- ** corner hilight for right top ** -->
  174.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="width-5" y="2" width="2" height="1"/>
  175.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="width-4" y="3" width="1" height="1"/>
  176.     <tint color="#000000" alpha="0.04" x="width-3" y="3" width="1" height="2"/>
  177.   
  178.     <!-- ** corner hilight for left bottom ** -->
  179.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.2" x="2" y="height-5" width="1" height="1"/>
  180.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.15" x="2" y="height-4" width="1" height="1"/>
  181.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="3" y="height-4" width="1" height="1"/>
  182.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="2" y="height-6" width="1" height="1"/>
  183.     <tint color="#000000" alpha="0.05" x="4" y="height-3" width="1" height="1"/>
  184.     <tint color="#000000" alpha="0.1" x="3" y="height-3" width="1" height="1"/>
  185.  
  186.     <!-- ** corner hilight for right bottom ** -->
  187.     <tint color="#000000" alpha="0.03" x="width-6" y="height-3" width="1" height="1"/>
  188.     <tint color="#000000" alpha="0.03" x="width-4" y="height-4" width="1" height="1"/>
  189.     <tint color="#000000" alpha="0.03" x="width-3" y="height-6" width="1" height="1"/>
  190.     <tint color="#000000" alpha="0.11" x="width-5" y="height-3" width="1" height="1"/>
  191.     <tint color="#000000" alpha="0.15" x="width-4" y="height-3" width="1" height="1"/>
  192.     <tint color="#000000" alpha="0.09" x="width-3" y="height-5" width="1" height="1"/>
  193.     <tint color="#000000" alpha="0.13" x="width-3" y="height-4" width="1" height="1"/>
  194. </draw_ops>
  195.  
  196. <draw_ops name="outer_frame">
  197.     <!-- background fill to fix theme manager rendering bugs -->
  198.     <rectangle color="gtk:bg[NORMAL]" filled="true" x="0" y="0" width="width-1" height="height-1"/>
  199.  
  200.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
  201.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width - 2" y1="3" x2="width - 2" y2="height - 2"/>
  202.     <line color="shade/gtk:bg[NORMAL]/1.3" x1="3" y1="1" x2="width - 4" y2="1"/>
  203.     <line color="shade/gtk:bg[NORMAL]/1.3" x1="1" y1="3" x2="1" y2="height - 2"/>
  204.     
  205.     <rectangle color="shade/gtk:bg[NORMAL]/0.25" filled="false"
  206.         x="0" y="0"
  207.         width="width - 1"
  208.         height="height - 1"/>
  209. </draw_ops>
  210.  
  211. <draw_ops name="title_background">
  212.     <gradient type="vertical" x="0" y="1" width="width" height="top_height / 2">
  213.         <color value="shade/gtk:bg[SELECTED]/1.3"/> <!-- 1.25 0.97 - 0.95 1.00 -->
  214.         <color value="shade/gtk:bg[SELECTED]/1.0"/>
  215.     </gradient>
  216.     <gradient type="vertical" x="0" y="top_height / 2" width="width" height="top_height / 2">
  217.         <color value="shade/gtk:bg[SELECTED]/0.97"/>
  218.         <color value="shade/gtk:bg[SELECTED]/1.1"/>
  219.     </gradient>
  220.     
  221.     <line color="shade/gtk:bg[SELECTED]/0.55" x1="0" y1="0" x2="width" y2="0"/>
  222.     <!--<line color="shade/gtk:bg[SELECTED]/0.4" x1="7" y1="0" x2="width -8" y2="0"/>-->
  223.  
  224.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.3" x="0" y="1" width="width" height="1"/>
  225.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.05" x="7" y="1" width="width -14" height="1"/>
  226.  
  227.     <line color="shade/gtk:bg[SELECTED]/0.97" x1="0" y1="top_height-2" x2="width" y2="top_height-2"/>
  228.     <line color="shade/gtk:bg[SELECTED]/0.7" x1="0" y1="top_height-1" x2="width-1" y2="top_height-1"/>
  229.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="6" y="2" width="1" height="1"/>
  230.  
  231.     <tint color="#000000" alpha="0.05" x="width-6" y="1" width="1" height="1"/>
  232.     <tint color="#000000" alpha="0.05" x="5" y="1" width="1" height="1"/>
  233. </draw_ops>
  234.  
  235. <!-- ** title background with side borders ** -->
  236. <draw_ops name="title_background_full">
  237.     <include name="title_background"/>
  238.     
  239.     <line color="shade/gtk:bg[SELECTED]/0.32" x1="0" y1="0" x2="0" y2="top_height-1"/>
  240.     <line color="shade/gtk:bg[SELECTED]/0.32" x1="width-1" y1="0" x2="width-1" y2="top_height-1"/>
  241.     
  242.     <tint color="shade/gtk:bg[SELECTED]/2" alpha="0.3" x="1" y="2" width="1" height="top_height-3"/>
  243.     <tint color="#000000" alpha="0.05" x="width-2" y="2" width="1" height="top_height-4"/>
  244. </draw_ops>
  245.  
  246. <draw_ops name="title_background_unfocused">
  247.     <gradient type="vertical" x="2" y="1" width="width - 4" height="top_height / 2">
  248.         <color value="shade/gtk:bg[NORMAL]/1.05"/>
  249.         <color value="shade/gtk:bg[NORMAL]/1.0"/>
  250.     </gradient>
  251.     <gradient type="vertical" x="2" y="top_height / 2" width="width - 4" height="top_height / 2">
  252.         <color value="shade/gtk:bg[NORMAL]/0.99"/>
  253.         <color value="shade/gtk:bg[NORMAL]/1.0"/>
  254.     </gradient>
  255.     
  256.     <line color="shade/gtk:bg[NORMAL]/0.45" x1="0" y1="0" x2="width" y2="0"/>
  257.     <line color="shade/gtk:bg[NORMAL]/1.3" x1="0" y1="1" x2="width" y2="1"/>
  258. </draw_ops>
  259.  
  260. <draw_ops name="title_background_unfocused_full">
  261.     <include name="title_background_unfocused"/>
  262.     
  263.     <!--<line color="shade/gtk:bg[NORMAL]/0.25" x1="0" y1="0" x2="0" y2="top_height-1"/>
  264.     <line color="shade/gtk:bg[NORMAL]/0.25" x1="width-1" y1="0" x2="width-1" y2="top_height-1"/>
  265.     
  266.     <tint color="shade/gtk:bg[NORMAL]/2" alpha="0.4"
  267.         x="1" y="2" width="1" height="top_height-3"/>
  268.     <tint color="#000000" alpha="0.1"
  269.         x="width-2" y="2" width="1" height="top_height-4"/>-->
  270. </draw_ops>
  271.  
  272. <draw_ops name="bevel_maximized">
  273.     <include name="title_background"/>
  274.     <line color="gtk:dark[NORMAL]" x1="0" y1="height-1" x2="width" y2="height-1"/>
  275. </draw_ops>
  276.  
  277. <draw_ops name="bevel_maximized_shaded">
  278.     <include name="title_background"/>
  279.     <line color="shade/gtk:bg[SELECTED]/0.25" x1="0" y1="height-1" x2="width" y2="height-1"/>
  280. </draw_ops>
  281.  
  282. <draw_ops name="bevel_maximized_unfocused">
  283.     <include name="title_background_unfocused"/>
  284.     <line color="gtk:dark[NORMAL]" x1="0" y1="height-1" x2="width" y2="height-1"/>
  285. </draw_ops>
  286.  
  287. <draw_ops name="bevel_maximized_unfocused_shaded">
  288.     <include name="title_background_unfocused"/>
  289.     <line color="shade/gtk:bg[NORMAL]/0.25" x1="0" y1="height-1" x2="width" y2="height-1"/>
  290. </draw_ops>
  291.  
  292. <draw_ops name="bevel_unfocused">
  293.     <include name="outer_frame"/>
  294.     <include name="title_background_unfocused_full"/>
  295. </draw_ops>
  296.  
  297. <draw_ops name="round_bevel_unfocused">
  298.   <include name="bevel_unfocused"/>
  299.   <include name="corners_outline_top"/>
  300.   <include name="corners_outline_bottom"/>
  301.   <include name="corners_hilight"/>
  302. </draw_ops>
  303.  
  304. <draw_ops name="round_bevel_unfocused_shaded">
  305.   <include name="bevel_unfocused"/>
  306.   <include name="corners_outline_top"/>
  307.   <include name="corners_outline_bottom"/>
  308.   <include name="corners_hilight_shaded"/>
  309.   <line color="shade/gtk:bg[NORMAL]/0.25" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
  310. </draw_ops>
  311.  
  312. <draw_ops name="bevel">
  313.     <include name="outer_frame"/>
  314.     <include name="title_background_full"/>
  315. </draw_ops>
  316.  
  317. <draw_ops name="round_bevel">
  318.   <include name="bevel"/>
  319.   <include name="corners_outline_selected_top"/>
  320.   <include name="corners_outline_bottom"/>
  321.   <include name="corners_hilight"/>
  322. </draw_ops>
  323.  
  324. <draw_ops name="bevel_shaded">
  325.   <include name="bevel"/>
  326.   <line color="shade/gtk:bg[SELECTED]/0.25" x1="0" y1="height-1" x2="width" y2="height-1"/>
  327. </draw_ops>
  328.  
  329. <draw_ops name="round_bevel_shaded">
  330.   <include name="bevel"/>
  331.   <include name="corners_outline_selected_top"/>
  332.   <include name="corners_outline_selected_bottom"/>
  333.   <include name="corners_hilight_shaded"/>
  334.   <line color="shade/gtk:bg[SELECTED]/0.25" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
  335. </draw_ops>
  336.  
  337. <draw_ops name="border">
  338.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
  339.     <line color="shade/gtk:bg[NORMAL]/0.88" x1="width - 2" y1="1" x2="width - 2" y2="height - 2"/>
  340.     <line color="shade/gtk:bg[NORMAL]/1.4" x1="1" y1="1" x2="width - 2" y2="1"/>
  341.     <line color="shade/gtk:bg[NORMAL]/1.4" x1="1" y1="1" x2="1" y2="height - 2"/>
  342.     
  343.     <rectangle color="shade/gtk:bg[NORMAL]/0.25" filled="false"
  344.                x="0" y="0"
  345.                width="width - 1"
  346.                height="height - 1"/>
  347. </draw_ops>
  348.  
  349. <!-- ::: TITLES ::: -->
  350. <draw_ops name="title_text">
  351.   <title color="shade/gtk:bg[SELECTED]/0.75"
  352.          x="(3 `max` (width-title_width)) / 2 + 1"
  353.          y="(((height - title_height) / 2) `max` 0) + 2"/>
  354.   <title color="shade/gtk:bg[SELECTED]/0.7"
  355.          x="(3 `max` (width-title_width)) / 2 + 2"
  356.          y="(((height - title_height) / 2) `max` 0) + 2"/>
  357.   <title color="shade/gtk:bg[SELECTED]/0.4"
  358.          x="(3 `max` (width-title_width)) / 2 + 1"
  359.          y="(((height - title_height) / 2) `max` 0) + 1"/>
  360.   <title color="#ffffff"
  361.          x="(3 `max` (width-title_width)) / 2"
  362.          y="(((height - title_height) / 2) `max` 0)"/>
  363. </draw_ops>
  364.  
  365. <draw_ops name="title_text_unfocused">
  366.   <title color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"
  367.          x="(3 `max` (width-title_width)) / 2"
  368.          y="((height - title_height) / 2) `max` 0"/>
  369. </draw_ops>
  370.  
  371. <draw_ops name="title">
  372.   <include name="title_text"/>
  373. </draw_ops>
  374.  
  375. <draw_ops name="title_unfocused">
  376.   <include name="title_text_unfocused"/>
  377. </draw_ops>
  378.  
  379. <!-- ::: BUTTONS ::: -->
  380. <draw_ops name="button_outline">
  381.     <tint color="#000000" alpha="0.45"
  382.         x="2" y="3" width="width-4" height="1"/>
  383.     <tint color="#000000" alpha="0.45"
  384.         x="2" y="height-4" width="width-4" height="1"/>
  385.     <tint color="#000000" alpha="0.45"
  386.         x="1" y="4" width="1" height="height-8"/>
  387.     <tint color="#000000" alpha="0.45"
  388.         x="width-2" y="4" width="1" height="height-8"/>
  389.  
  390.     <tint color="#ffffff" alpha="0.4" 
  391.         x="2" y="4" width="width-4" height="1"/>
  392.     <tint color="#ffffff" alpha="0.4"
  393.         x="2" y="height-5" width="width-4" height="1"/>
  394.     <tint color="#ffffff" alpha="0.4"
  395.         x="2" y="5" width="1" height="height-10"/>
  396.     <tint color="#ffffff" alpha="0.4"
  397.         x="width-3" y="5" width="1" height="height-10"/>
  398.         
  399.     <tint color="#000000" alpha="0.2"
  400.         x="2" y="4" width="1" height="1"/>
  401.     <tint color="#000000" alpha="0.2"
  402.         x="2" y="height-5" width="1" height="1"/>
  403.     <tint color="#000000" alpha="0.2"
  404.         x="width-3" y="4" width="1" height="1"/>
  405.     <tint color="#000000" alpha="0.2"
  406.         x="width-3" y="height-5" width="1" height="1"/>
  407. </draw_ops>
  408.  
  409. <draw_ops name="button_bg">
  410.     <gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
  411.         <color value="shade/gtk:bg[SELECTED]/1.35"/>
  412.         <color value="shade/gtk:bg[SELECTED]/0.95"/>
  413.     </gradient>
  414.     <gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
  415.         <color value="shade/gtk:bg[SELECTED]/0.90"/>
  416.         <color value="shade/gtk:bg[SELECTED]/0.95"/>
  417.     </gradient>
  418.     
  419.     <include name="button_outline"/>
  420. </draw_ops>
  421.  
  422. <draw_ops name="button_bg_prelight">
  423.     <gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
  424.         <color value="shade/gtk:bg[SELECTED]/1.45"/>
  425.         <color value="shade/gtk:bg[SELECTED]/1.05"/>
  426.     </gradient>
  427.     <gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
  428.         <color value="shade/gtk:bg[SELECTED]/0.95"/>
  429.         <color value="shade/gtk:bg[SELECTED]/1.05"/>
  430.     </gradient>
  431.      
  432.     <include name="button_outline"/>    
  433. </draw_ops>
  434.  
  435. <draw_ops name="button_bg_pressed">
  436.     <gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
  437.         <color value="shade/gtk:bg[SELECTED]/1.15"/>
  438.         <color value="shade/gtk:bg[SELECTED]/0.75"/>
  439.     </gradient>
  440.     <gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
  441.         <color value="shade/gtk:bg[SELECTED]/0.70"/>
  442.         <color value="shade/gtk:bg[SELECTED]/0.75"/>
  443.     </gradient>
  444.     
  445.     <include name="button_outline"/>    
  446. </draw_ops>
  447.  
  448. <draw_ops name="button_bg_unfocused">
  449.     <gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
  450.         <color value="shade/gtk:bg[NORMAL]/1.1"/>
  451.         <color value="shade/gtk:bg[NORMAL]/1.0"/>
  452.     </gradient>
  453.     <gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
  454.         <color value="shade/gtk:bg[NORMAL]/0.98"/>
  455.         <color value="shade/gtk:bg[NORMAL]/1.0"/>
  456.     </gradient>
  457.  
  458.     <include name="button_outline"/>        
  459. </draw_ops>
  460.  
  461. <draw_ops name="button_bg_unfocused_prelight">
  462.     <gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
  463.         <color value="shade/gtk:bg[NORMAL]/1.3"/>
  464.         <color value="shade/gtk:bg[NORMAL]/1.1"/>
  465.     </gradient>
  466.     <gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
  467.         <color value="shade/gtk:bg[NORMAL]/1.05"/>
  468.         <color value="shade/gtk:bg[NORMAL]/1.1"/>
  469.     </gradient>
  470.  
  471.     <include name="button_outline"/>    
  472. </draw_ops>
  473.  
  474. <draw_ops name="button_bg_unfocused_pressed">
  475.     <gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
  476.         <color value="shade/gtk:bg[NORMAL]/0.76"/>
  477.         <color value="shade/gtk:bg[NORMAL]/0.75"/>
  478.     </gradient>
  479.     <gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
  480.         <color value="shade/gtk:bg[NORMAL]/0.73"/>
  481.         <color value="shade/gtk:bg[NORMAL]/0.75"/>
  482.     </gradient>
  483.  
  484.     <include name="button_outline"/>    
  485. </draw_ops>
  486.  
  487. <draw_ops name="menu_button_icon"> 
  488.   <icon  x="(width-mini_icon_width)/2-2"
  489.          y="(height-mini_icon_height)/2+1"
  490.          width="mini_icon_width" height="mini_icon_height"/>
  491. </draw_ops>
  492.  
  493. <draw_ops name="menu_button_normal">
  494.   <include name="menu_button_icon"/>
  495. </draw_ops>
  496. <draw_ops name="menu_button_pressed">
  497.   <include name="menu_button_icon"/>
  498. </draw_ops>
  499. <draw_ops name="menu_button_unfocused">
  500.   <include name="menu_button_icon"/>
  501. </draw_ops>
  502.  
  503. <!-- ::: ICONS ::: -->
  504. <draw_ops name="close_button_icon">
  505.     <image filename="icon_close.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
  506. </draw_ops>
  507.  
  508. <draw_ops name="close_button_icon_unfocused">
  509.     <image filename="icon_close_u.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/>
  510. </draw_ops>
  511.  
  512. <draw_ops name="close_button_normal">
  513.   <include name="button_bg"/>
  514.   <include name="close_button_icon"/>
  515. </draw_ops>
  516. <draw_ops name="close_button_prelight">
  517.   <include name="button_bg_prelight"/>
  518.   <include name="close_button_icon"/>
  519. </draw_ops>
  520. <draw_ops name="close_button_pressed">
  521.   <include name="button_bg_pressed"/>
  522.   <include name="close_button_icon"/>
  523. </draw_ops>
  524. <draw_ops name="close_button_unfocused">
  525.   <include name="button_bg_unfocused"/>
  526.   <include name="close_button_icon_unfocused"/>
  527. </draw_ops>
  528. <draw_ops name="close_button_unfocused_prelight">
  529.   <include name="button_bg_unfocused_prelight"/>
  530.   <include name="close_button_icon_unfocused"/>
  531. </draw_ops>
  532. <draw_ops name="close_button_unfocused_pressed">
  533.   <include name="button_bg_unfocused_pressed"/>
  534.   <include name="close_button_icon_unfocused"/>
  535. </draw_ops>
  536.  
  537. <draw_ops name="maximize_button_icon">
  538.     <image filename="icon_maximize.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
  539. </draw_ops>
  540.  
  541. <draw_ops name="maximize_button_icon_unfocused">    
  542.     <image filename="icon_maximize_u.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/>
  543. </draw_ops>
  544.  
  545. <draw_ops name="maximize_button_normal">
  546.   <include name="button_bg"/>
  547.   <include name="maximize_button_icon"/>
  548. </draw_ops>
  549. <draw_ops name="maximize_button_prelight">
  550.   <include name="button_bg_prelight"/>
  551.   <include name="maximize_button_icon"/>
  552. </draw_ops>
  553. <draw_ops name="maximize_button_pressed">
  554.   <include name="button_bg_pressed"/>
  555.   <include name="maximize_button_icon"/>
  556. </draw_ops>
  557. <draw_ops name="maximize_button_unfocused">
  558.   <include name="button_bg_unfocused"/>
  559.   <include name="maximize_button_icon_unfocused"/>
  560. </draw_ops>
  561. <draw_ops name="maximize_button_unfocused_prelight">
  562.   <include name="button_bg_unfocused_prelight"/>
  563.   <include name="maximize_button_icon_unfocused"/>
  564. </draw_ops>
  565. <draw_ops name="maximize_button_unfocused_pressed">
  566.   <include name="button_bg_unfocused_pressed"/>
  567.   <include name="maximize_button_icon_unfocused"/>
  568. </draw_ops>
  569.  
  570. <draw_ops name="restore_button_icon">
  571.     <image filename="icon_restore.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
  572. </draw_ops>
  573.  
  574. <draw_ops name="restore_button_icon_unfocused">
  575.     <image filename="icon_restore_u.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/>
  576. </draw_ops>
  577.  
  578. <draw_ops name="restore_button_normal">
  579.   <include name="button_bg"/>
  580.   <include name="restore_button_icon"/>
  581. </draw_ops>
  582. <draw_ops name="restore_button_prelight">
  583.   <include name="button_bg_prelight"/>
  584.   <include name="restore_button_icon"/>
  585. </draw_ops>
  586. <draw_ops name="restore_button_pressed">
  587.   <include name="button_bg_pressed"/>
  588.   <include name="restore_button_icon"/>
  589. </draw_ops>
  590. <draw_ops name="restore_button_unfocused">
  591.   <include name="button_bg_unfocused"/>
  592.   <include name="restore_button_icon_unfocused"/>
  593. </draw_ops>
  594. <draw_ops name="restore_button_unfocused_prelight">
  595.   <include name="button_bg_unfocused_prelight"/>
  596.   <include name="restore_button_icon_unfocused"/>
  597. </draw_ops>
  598. <draw_ops name="restore_button_unfocused_pressed">
  599.   <include name="button_bg_unfocused_pressed"/>
  600.   <include name="restore_button_icon_unfocused"/>
  601. </draw_ops>
  602.  
  603. <draw_ops name="minimize_button_icon">
  604.     <image filename="icon_minimize.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
  605. </draw_ops>
  606.  
  607. <draw_ops name="minimize_button_icon_unfocused">
  608.     <image filename="icon_minimize_u.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/></draw_ops>
  609.  
  610. <draw_ops name="minimize_button_normal">
  611.   <include name="button_bg"/>
  612.   <include name="minimize_button_icon"/>
  613. </draw_ops>
  614. <draw_ops name="minimize_button_prelight">
  615.   <include name="button_bg_prelight"/>
  616.   <include name="minimize_button_icon"/>
  617. </draw_ops>
  618. <draw_ops name="minimize_button_pressed">
  619.   <include name="button_bg_pressed"/>
  620.   <include name="minimize_button_icon"/>
  621. </draw_ops>
  622. <draw_ops name="minimize_button_unfocused">
  623.   <include name="button_bg_unfocused"/>
  624.   <include name="minimize_button_icon_unfocused"/>
  625. </draw_ops>
  626. <draw_ops name="minimize_button_unfocused_prelight">
  627.   <include name="button_bg_unfocused_prelight"/>
  628.   <include name="minimize_button_icon_unfocused"/>
  629. </draw_ops>
  630. <draw_ops name="minimize_button_unfocused_pressed">
  631.   <include name="button_bg_unfocused_pressed"/>
  632.   <include name="minimize_button_icon_unfocused"/>
  633. </draw_ops>
  634.  
  635. <draw_ops name="blank">
  636. <!-- nothing -->
  637. </draw_ops>
  638.  
  639. <frame_style name="normal" geometry="normal">
  640.   <piece position="entire_background" draw_ops="round_bevel_unfocused"/>
  641.   <piece position="title" draw_ops="title_unfocused"/>
  642.   <button function="close" state="normal" draw_ops="close_button_unfocused"/>
  643.   <button function="close" state="pressed" draw_ops="close_button_unfocused_pressed"/>
  644.   <button function="close" state="prelight" draw_ops="close_button_unfocused_prelight"/>
  645.   <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
  646.   <button function="maximize" state="pressed" draw_ops="maximize_button_unfocused_pressed"/>
  647.   <button function="maximize" state="prelight" draw_ops="maximize_button_unfocused_prelight"/>
  648.   <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
  649.   <button function="minimize" state="pressed" draw_ops="minimize_button_unfocused_pressed"/>
  650.   <button function="minimize" state="prelight" draw_ops="minimize_button_unfocused_prelight"/>
  651.   <button function="menu" state="normal" draw_ops="menu_button_normal"/>
  652.   <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
  653. </frame_style>
  654.  
  655. <frame_style name="normal_shaded" geometry="shaded" parent="normal">
  656.   <piece position="entire_background" draw_ops="round_bevel_unfocused_shaded"/>
  657. </frame_style>
  658.  
  659. <frame_style name="focused" geometry="normal" parent="normal">
  660.   <piece position="entire_background" draw_ops="round_bevel"/>
  661.   <piece position="title" draw_ops="title"/>
  662.   <button function="close" state="normal" draw_ops="close_button_normal"/>
  663.   <button function="close" state="pressed" draw_ops="close_button_pressed"/>
  664.   <button function="close" state="prelight" draw_ops="close_button_prelight"/>
  665.   <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
  666.   <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
  667.   <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
  668.   <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
  669.   <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
  670.   <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
  671. </frame_style>
  672.  
  673. <frame_style name="focused_shaded" geometry="shaded" parent="focused">
  674.   <piece position="entire_background" draw_ops="round_bevel_shaded"/>
  675. </frame_style>
  676.  
  677. <frame_style name="normal_maximized" geometry="normal_maximized" parent="normal">
  678.   <piece position="entire_background" draw_ops="bevel_maximized_unfocused"/>
  679.   <button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
  680.   <button function="maximize" state="pressed" draw_ops="restore_button_unfocused_pressed"/>
  681.   <button function="maximize" state="prelight" draw_ops="restore_button_unfocused_prelight"/>
  682. </frame_style>
  683.  
  684. <frame_style name="normal_maximized_shaded" geometry="normal_maximized" parent="normal_maximized">
  685.   <piece position="entire_background" draw_ops="bevel_maximized_unfocused_shaded"/>
  686. </frame_style>
  687.  
  688. <frame_style name="focused_maximized" geometry="normal_maximized" parent="focused">
  689.   <piece position="entire_background" draw_ops="bevel_maximized"/>
  690.   <button function="maximize" state="normal" draw_ops="restore_button_normal"/>
  691.   <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
  692.   <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
  693. </frame_style>
  694.  
  695. <frame_style name="focused_maximized_shaded" geometry="normal_maximized" parent="focused_maximized">
  696.   <piece position="entire_background" draw_ops="bevel_maximized_shaded"/>
  697. </frame_style>
  698.  
  699. <frame_style name="border" geometry="border" parent="normal">
  700.   <piece position="entire_background" draw_ops="border"/>
  701.   <piece position="title" draw_ops="blank"/>
  702. </frame_style>
  703.  
  704. <frame_style name="utility_normal" geometry="utility" parent="normal">
  705.   <piece position="entire_background" draw_ops="bevel_unfocused"/>
  706. </frame_style>
  707. <frame_style name="utility_focused" geometry="utility" parent="focused">
  708.   <piece position="entire_background" draw_ops="bevel"/>
  709. </frame_style>
  710. <frame_style name="utility_focused_shaded" geometry="utility" parent="focused_shaded">
  711.   <piece position="entire_background" draw_ops="bevel_shaded"/>
  712. </frame_style>
  713.  
  714. <frame_style_set name="normal">
  715.    <frame focus="yes" state="normal" resize="both" style="focused"/>
  716.    <frame focus="no" state="normal" resize="both" style="normal"/>
  717.    <frame focus="yes" state="maximized" style="focused_maximized"/>
  718.    <frame focus="no" state="maximized" style="normal_maximized"/>
  719.    <frame focus="yes" state="shaded" style="focused_shaded"/>
  720.    <frame focus="no" state="shaded" style="normal_shaded"/>
  721.    <frame focus="yes" state="maximized_and_shaded" style="focused_maximized_shaded"/>
  722.    <frame focus="no" state="maximized_and_shaded" style="normal_maximized_shaded"/>
  723. </frame_style_set>
  724.  
  725. <frame_style_set name="utility" parent="normal">
  726. <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
  727. <frame focus="no" state="normal" resize="both" style="utility_normal"/>
  728. <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
  729. <frame focus="yes" state="maximized" style="focused"/>
  730. <frame focus="no" state="maximized" style="normal"/>
  731. <frame focus="yes" state="shaded" style="utility_focused_shaded"/>
  732. <frame focus="no" state="shaded" style="utility_normal"/>
  733. <frame focus="yes" state="maximized_and_shaded" style="focused_shaded"/>
  734. <frame focus="no" state="maximized_and_shaded" style="normal"/>
  735. </frame_style_set>
  736.  
  737. <frame_style_set name="border">
  738. <frame focus="yes" state="normal" resize="both" style="border"/>
  739. <frame focus="no" state="normal" resize="both" style="border"/>
  740. <frame focus="yes" state="maximized" style="border"/>
  741. <frame focus="no" state="maximized" style="border"/>
  742. <frame focus="yes" state="shaded" style="border"/>
  743. <frame focus="no" state="shaded" style="border"/>
  744. <frame focus="yes" state="maximized_and_shaded" style="border"/>
  745. <frame focus="no" state="maximized_and_shaded" style="border"/>
  746. </frame_style_set>
  747.  
  748. <window type="normal" style_set="normal"/>
  749. <window type="dialog" style_set="normal"/>
  750. <window type="modal_dialog" style_set="normal"/>
  751. <window type="menu" style_set="normal"/>
  752. <window type="utility" style_set="utility"/>
  753. <window type="border" style_set="border"/>
  754.  
  755. <menu_icon function="close" state="normal" draw_ops="close_button_icon_unfocused"/>
  756. <menu_icon function="maximize" state="normal" draw_ops="maximize_button_icon_unfocused"/>
  757. <menu_icon function="unmaximize" state="normal" draw_ops="restore_button_icon_unfocused"/>
  758. <menu_icon function="minimize" state="normal" draw_ops="minimize_button_icon_unfocused"/>
  759.  
  760. </metacity_theme>
  761.